<%--
 *  File:   UploadEXL.jsp
 *  Author: Jamesli 
 *  Date:   2010/07/07
 *
 *  Copyright (C) 2000 - 2010 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.        
--%>

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>
<%@ page import="com.oval.emanager.service.*" %>
<%@ page import="com.oval.foundation.DefaultParams"%>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>
<%
 	Category cat = Category.getInstance("jsp.UploadEXL");  
	String privilegeCode = "Z0608,10216,E0162,A0702,A0703,A0704";
    String strModuleName = "CM";
    String contextPath = request.getContextPath();   
    ExcelEngine.loadStaticFormatCache(DefaultParams.findParam("exceldesc-path"));
%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/FrmDefault.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>
<html>
<head>
<title>UploadEXL</title>
<PageFlow:CheckPageFlow pageName="p_uploadexcel"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script language="JavaScript">
function page_operate(operand)
{
    cform.encoding="multipart/form-data";
    cform.actionname.value = "upload";
    cform.target = "_self";
    cform.submit();
}
</script>
<style type="text/css">
	.bd{
	padding-top:0px;
	<--height:15px;-->
	}
	.sz{
	padding-left:10px;
	padding-right:5px;
	padding-top:15px;
	float:left;}
	
	div.RoundedCorner{background: #FDFAC5;margin-top:5px;} 
	b.rtop, b.rbottom{display:block;background: #FFFFFF} 
	b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #FDFAC5} 
	b.r1{margin: 0 5px} 
	b.r2{margin: 0 3px} 
	b.r3{margin: 0 2px} 
	b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px} 
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%@ include file="/inc/PageLocation.inc" %>
<form name="cform" method="post" action="<%=contextPath %>/Dispatcher">
  <input type="hidden" name="pagename" value="p_uploadexcel">
  <input type="hidden" name="actionname">   
  <%
  String sheetname = (String)request.getParameter("sheetname");
  if(sheetname != null)
  {
    session.setAttribute("sheetname",sheetname);  
  }
  %>
  <input type="hidden" name="sheetname" value="<%= (String)session.getAttribute("sheetname") %>"/>
  <custom:hidden property="filename"/>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
 <tr>
  <td> 
  	<%= label.getLabelName("L_Path") %><%= label.getLabelName("L_Colon") %><input type="file" name="filename" size="50">
    <br><a onclick="page_operate('upload')"><custom:button type="1" label="L_Finish" imgsrc="finish.gif" border="0" style="width:60"/></a>
  </td>
 </tr>
</table>
<br><br><br><br><br><br><br>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
 <tr>
  <td width="20%"></td>
  <td> 
  	<div id="goingid" class="RoundedCorner"  align="center" >
    <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b><br><br>
     <font size="4"><%= message.getMessageDesc("ZYL_TDR_20")%></font><br><br><br>
    <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
    </div></div>
  </td>
  <td width="20%"></td>
 </tr>
</table>
</form>
</body>
</html>


